package org.example.readbitfile;

import java.io.*;
import java.util.Arrays;
import java.util.List;

public class ReadBitfile {


    public static void main(String[] args) {
        List<String> data = Arrays.asList("aaaaa", "bbbbb");

        FileInputStream fis = null;
//        FileOutputStream fos = null;
        DataInputStream dis = null;
//        DataOutputStream dos = null;
        try {
            //创建输入流
            fis = new FileInputStream("/lyndon/iProject/javapath/bitmap17/bitmap17/data/out/crc32file.txt");
            dis = new DataInputStream(fis);
            //循环读取录入
            long temp;
            while ((temp = dis.readLong()) != -1) {
                System.out.println("temp:" + temp);
            }

        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fis != null) {
                    fis.close();
                }
                /*if (fos != null) {
                    fos.close();
                }*/
                if (dis != null) {
                    dis.close();
                }
                /*if (dos != null) {
                    dos.close();
                }*/
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }



}
